import request from '_c/utils/request'

// 修改客户登录密码
export function changePasswd(data) {
	return request({
		url: '/app/api/customer/changepasswd',
		method: 'post',
		data
	})
}

// 客户信息查询
export function informationQuery() {
	return request({
		url: '/app/api/customer/query',
		//url: '/app/api/ag/term/customer/query',
		method: 'post',
	})
}

// 客户信息查询
/**
export function queryCustomer(data) {
	return request({
		url: '/app/api/ag/term/customer/queryCustomer',
		method: 'post',
		data
	})
}
**/

export function queryCustomer(data){
	return request.request({
		url:'/app/api/ag/term/customer/queryCustomer',
		method:'get',
		params:data
	})
}


// 客户重置密码
export function forgetpasswd(data) {
	return request({
		url: '/app/api/customer/forgetpasswd',
		method: 'post',
		data
	})
}
// 实名认证及结算卡信息绑定
export function nameAuth(data) {
	return request({
		url: '/app/api/ag/term/customer/auth',
		method: 'post',
		data
	})
}

// 进件商户信息每一步保存
export function authInfoSave(data) {
	return request({
		url: '/app/api/ag/term/customer/authInfoSave',
		method: 'post',
		data
	})
}

// 变更结算卡信息
export function editSettleCard(data) {
	return request({
		url: '/app/api/edit/settle/card',
		method: 'post',
		data
	})
}


// 机具扫码进入- 检查用户
export function checkUser(data) {
	return request.request({
		url: '/app/api/scan/checkUser',
		method: 'POST',
		data,
		noShowMsg: true
	})
}

// 机具扫码进入- 登录
export function scanLogin(data) {
	return request.request({
		url: '/app/api/scan/login',
		method: 'POST',
		data
	})
}

// 机具扫码进入- 入驻
export function scanIncome(data) {
	return request.request({
		url: '/app/api/scan/income',
		method: 'POST',
		data
	})
}

// 机具扫码进入- 创建用户
export function scanCreateUser(data) {
	return request.request({
		url: '/app/api/scan/createUser',
		method: 'POST',
		data
	})
}

// 机具扫码进入- 获取机具号
export function scanGetS(data) {
	return request.request({
		url: '/app/api/scan/descData?sn=' + data,
		method: 'get',

	})
}
// 机具扫码进入- 获取代理商配置的进件跳转地址
export function jumpToUrl(data) {
	return request.request({
		url: '/app/api/scan/jumpToUrl?sn=' + data,
		method: 'get',

	})
}
